package com.ssy.lingxi.purchase.api.feign;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.purchase.api.dto.request.UpdateCreditPointRequest;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @menu 采购询价、采购招标、采购竞价 - 内部接口
 * @author fhj
 * @version 2.0.0
 * @date 2021/07/09
 */
@FeignClient(value = "purchase-service")
public interface PurchaseFeign {

    @ApiOperation(value = "根据会员ID和角色ID更新信用分")
    @PostMapping("/purchase/inner/purchaseInner/updateCreditPoint")
    Wrapper<?> updateCreditPoint(@RequestBody @Valid UpdateCreditPointRequest request);
}
